package saeildamil.ch18;

public class Total {
	public static void main(String[] args) {
		int total=0;
		for(int i=0; i<3; i++)
			total+=i;
		System.out.println(total);
		oddSum();
	}
	
	private static void oddSum() {
		int total=0;
		for(int i=0; i<=101; i+=2){
			total+=i;
		}
		System.out.println(total);
	}
}
